package dome4;

public class Text {
    public void test() {
        class Inner {
            public int a = 1;
            public int b = 2;

            //~~~~
        }
        //只能在当前方法中使用
        Inner inner = new Inner();
        System.out.println(inner.a);
    }

    public static void main(String[] args) {
        //~~~~
    }
}
